import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import AddReferral from '@/components/add-referral'
import CreateUser from '@/components/create-user'
import CommisionInfo from '@/components/commision-info'
import UserInfo from '@/components/user-info'
import NotLogin from '@/components/not-login'
import DealerInfo from '@/components/dealer-info'
import ModifyWeight from '@/components/modify-weight'
import Recharge from '@/components/recharge'
import Abnormal from '@/components/abnormal'
import Judge from '@/components/judge'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/new_referral',
      name: 'AddReferral',
      component: AddReferral
    },
    {
      path: '/new_user',
      name: 'CreateUser',
      component: CreateUser
    },
    {
      path: '/commision',
      name: 'CommisionInfo',
      component: CommisionInfo
    },
    {
      path: '/user_info',
      name: 'UserInfo',
      component: UserInfo
    },
    {
      path: '/not_login',
      name: 'NotLogin',
      component: NotLogin
    },
    {
      path: '/dealer_info',
      name: 'DealerInfo',
      component: DealerInfo
    },
    {
      path: '/modify_weight',
      name: 'ModifyWeight',
      component: ModifyWeight
    },
    {
      path: '/recharge',
      name: 'Recharge',
      component: Recharge
    },
    {
      path: '/abnormal',
      name: 'Abnormal',
      component: Abnormal
    },
    {
      path: '/judge',
      name: 'Judge',
      component: Judge
    }
  ]
})
